package com.weipai.springboot.module.service;

import com.weipai.springboot.model.GiftCertificate;
import com.weipai.springboot.model.api.Response;

import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/04 15:28
 * 
 * 礼券
 */
public interface GiftCertificateService {
    
    //保存
    Response save(GiftCertificate giftCertificate);

    //查询礼券详情
    Response getGiftCertificateById(String id);

    //删除
    Response deleteById(String id);

    //更改礼券的状态--启用/禁用
    Response changeStatus(String id, Integer status);

    //修改礼券
    Response update(GiftCertificate giftCertificate);

    //分页查询
    Response selectAllByPage(Integer page, Integer size, String draw);

    //批量删除
    Response batchDeleteById(String[] id);

    //定时任务
    void disposeGiftCertificate();

    Response selectAllByPage22(Integer page, Integer size, String draw);
}
